#ifndef BULLET_H
#define BULLET_H

#include <QObject>
#include<QGraphicsPixmapItem>
class bullet : public QGraphicsPixmapItem
{
   public: enum bullettype{
        player,
        enemy

    };
public:
       //explicit bullet();
    explicit bullet(QPoint pos,QPixmap bulletimg,int type);
    //子弹移动函数
    void bulletmove(QPoint dir=QPoint(1,0));

    int bulletspeed;
    int mybullettype;//玩家车子弹还是地方子弹
signals:
};

#endif // BULLET_H
